import { request } from "@/utils/service"

/**
 * @param data 获取标签列表
 * @returns
 */
export const APILabelList = (data: any) => {
  return request<any>({
    url: "/label/list",
    method: "POST",
    data
  })
}

/**
 * @param data 添加标签
 * @returns
 */
export const APILabelAdd = (data: any) => {
  return request<any>({
    url: "/label/add",
    method: "POST",
    data
  })
}
/**
 * @param data 删除标签
 * @returns
 */
export const APILabelDel = (data: any) => {
  return request<any>({
    url: "/label/del",
    method: "POST",
    data
  })
}

//

/**
 * @param data token列表
 * @returns
 */
export const APITokenRobotList = (data: any) => {
  return request<any>({
    url: "/token/list",
    method: "POST",
    data
  })
}

/**
 * @param data 获取我的项目通讯token
 * @returns
 */
export const APIAuthorizationList = (data: any) => {
  return request<any>({
    url: "/authorization/list",
    method: "POST",
    data
  })
}

/**
 * @param data 添加我的项目通讯token
 * @returns
 */
export const APIAuthorizationAdd = (data: any) => {
  return request<any>({
    url: "/authorization/add",
    method: "POST",
    data
  })
}

/**
 * @param data 添加我的项目通讯token
 * @returns
 */
export const APIIntegralList = (data: any) => {
  return request<any>({
    url: "/integral/list",
    method: "POST",
    data
  })
}

/**
 * @param data 获取我的订单列表
 * @returns
 */
export const APIBillList = (data: any) => {
  return request<any>({
    url: "/bill/list",
    method: "POST",
    data
  })
}

/**
 * @param data 生成订单
 * @returns
 */
export const APIBillAdd = (data: any) => {
  return request<any>({
    url: "/bill/add",
    method: "POST",
    data
  })
}

/**
 * @param data 设置项（url回调）
 * @returns
 */
export const APIUserSetConfig = (data: any) => {
  return request<any>({
    url: "/user/set_config",
    method: "POST",
    data
  })
}

/**
 * @param data 积分设置
 * @returns
 */
export const APIIntegralSetting = (data: any) => {
  return request<any>({
    url: "/integral/setting",
    method: "POST",
    data
  })
}

/**
 * @param data 二维码列表
 * @returns
 */
export const APIQrCodexList = (data: any) => {
  return request<any>({
    url: "/qrcodex/list",
    method: "POST",
    data
  })
}

/**
 * @param data 二维码保存
 * @returns
 */
export const APIQrcodexAdd = (url: string, data: any) => {
  return request<any>({
    url: url,
    method: "POST",
    data
  })
}

/**
 * @param data 生成二维码
 * @returns
 */
export const APIQrcodexQrcode = (data: any) => {
  return request<any>({
    url: "/qrcodex/qrcode",
    method: "POST",
    data
  })
}

/**
 * @param data 删除二维码
 * @returns
 */
export const APIQrcodexdel = (data: any) => {
  return request<any>({
    url: "/qrcodex/del",
    method: "POST",
    data
  })
}
